import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/scss/global.scss' // 全局设置

import router from './router'
import store from './store'
import Api from './api'

import '@/utils/icons'
// 路由钩子函数判断登录信息
// import '@/router/permission'

Vue.config.productionTip = false

Vue.use(Api)
Vue.use(ElementUI)

// 全局添加过滤器
import { installFilters } from './utils/filters'
installFilters(Vue)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')